package drone.iqgc.common;

import org.springframework.core.convert.converter.Converter ;
import org.springframework.stereotype.Component ;
import org.springframework.web.util.HtmlUtils ;

import drone.basis.util.StringUtil ;

@Component
public class EscapeConverter implements Converter <String, String>
{
	@Override
    public String convert(String s) {
		
        return StringUtil.isEmpty(s) ? s : HtmlUtils.htmlEscape(s);
    }
}
